package file.listener;

import file.FileFrame;
import file.handle.FilePannel;

import javax.swing.*;
import java.io.File;

/**
 * @Author: zou
 * @email: 704572528@qq.com
 * @Date: 2020/10/28 16:45
 */
public abstract class FileFrameAbstract {

    /**
     * 主体窗体
     */
    protected FileFrame fileFrame;


    public FileFrameAbstract (FileFrame fileFrame) {
        this.fileFrame = fileFrame;
    }

    /**
     * 获取路径
     * @return
     */
    protected String getPathLable () {
        return fileFrame.getPathLable().getText();
    }

    /**
     * 设置pathLable的值
     * @param text
     */
    protected void setPathLablePath (String text) {
        JLabel pathLable = fileFrame.getPathLable();
        pathLable.setText(text);
    }




}
